package priv.yiyuan.example.design.visitor.node;

import priv.yiyuan.example.design.visitor.AstVisitor;

/**
 * @author YiYuan
 * @data 2025/7/30
 * @apoNote
 */
public class VariableDeclaration implements AstNode {

    private String type;

    private String name;

    public VariableDeclaration(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    @Override
    public void accept(AstVisitor visitor) {
        visitor.visit(this);
    }

}
